package cn.example.zjgsu.service;

import cn.example.zjgsu.exception.MyException;
import cn.example.zjgsu.pojo.result.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @author: miaopeihan
 * @date: 2020-03-25  15:48
 */
public interface MyPageServer {

    List<ResultRank> getNationalRank(String account);

    List<ResultRank> getCityRank(String account);

    ResultPersonInfo getPersonInfo(String account);

    List<ResultMainFoodRecord> getFavorites(String userId);

    List<ResultFocusInfo> getFocusList(String userId);

    boolean collectFoodRecord(String userId,int foodRecordId);

    boolean disCollectFoodRecord(String userId,int foodRecordId);

    boolean focusPerson(String myAccount,String focusAccount);

    boolean disFocusPerson(String myAccount,String focusAccount);

    List<ResultMFR> getCollectionFoodRecord(String userid) throws MyException;

    String fileUpload(MultipartFile file, HttpServletRequest request, String sex,String age,String acount) throws IOException;
}
